package com.bit.JVMTest;



public class equalsTest {
    public static void main(String[] args) {
        String s1 = "guQi";
        String s2 = new String("guQi");

        System.out.println("用==判断：");
        System.out.println(s1 == s2);

        System.out.println("用equals判断：");
        System.out.println(s1.equals(s2));
    }
}
